import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import 'lib-flexible-computer';
import App from './App.vue'
import router from './router'
import ElementPlus, { carouselContextKey } from 'element-plus'
import 'element-plus/dist/index.css'
// lib-flexible-computer postcss-px2rem px2rem-loader -D
import 'lib-flexible/flexible.js'
import DataVVue3 from '@kjgl77/datav-vue3'
// import {initRem} from './utils/rem'
const app = createApp(App)

// const rootValue = 37.5
// const rootWidth = 375
// const deviceWidth = document.documentElement.clientWidth; // 用户的设备屏幕宽度
// document.documentElement.style.fontSize = (deviceWidth * rootValue / rootWidth) + 'px';


// initRem();

app.use(createPinia())
app.use(router)
app.use(DataVVue3)
app.use(ElementPlus)
app.mount('#app')
